package com.accounting.client.remote.enumeration;

import java.util.List;

import corelib.client.CollectionUtil;

public class PackageStatus {
	
	public final static int Pending    = 0;
    public final static int Shipping   = 200;
    public final static int Delivered  = 800;
    public final static int Failed     = 900;
    public final static int Cancelled  = 999;
    
    public final static List<Integer> All = CollectionUtil.newArrayList(Pending, Shipping, Delivered, Failed, Cancelled);
    
    public static String getName(int status){
    	switch(status){
	    	case Pending	: return "未处理";
	    	case Shipping	: return "运输中";
	    	case Delivered  : return "妥投";
	    	case Failed		: return "失败";
	    	case Cancelled	: return "取消";
	    	default			: return "未知状态";
    	}
    }
    
}
